package com.zking.ssm.mapper;
import org.apache.ibatis.annotations.Param;

import com.zking.ssm.model.File;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
* @author Duan
* @description 针对表【t_file】的数据库操作Mapper
* @createDate 2021-11-25 15:31:20
* @Entity com.zking.ssm.model.File
*/
@Repository
public interface FileMapper extends BaseMapper<File> {

    /**
     * 文件上传
     * @param file
     * @return
     */
    int insertSelective(File file);


    /**
     * 文件下载
     * @param fileId
     * @return
     */
    File selectOneByFileId(@Param("fileId") String fileId);


}




